package com.example.demo2.mapper;


import com.example.demo2.entity.YTTest;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @author jie
 * @date 2019/10/28 -14:53
 */

@Mapper
public interface DemoMapper {

    @Select("select * from YT_TEST t")
    List<YTTest> findAll();

    @Delete("delete from yt_test where serialkey = #{serialkey}")
    int del(int serialkey);

    int addTest(YTTest ytTest);
}
